package com.antg.udf;

import org.apache.hadoop.hive.ql.exec.UDF;

import java.util.ArrayList;
public class MySplit extends UDF {
    public  ArrayList<String> evaluate(String input){
        String[] split = input.split(",");
        ArrayList<String> result = new ArrayList<>();
        for (String s : split) {
            if(s.length()!=0&&!s.equals("-")){
                    result.add(s);
            }
        }
        return result;
    }

}
